import request from '../utils/request.js';
import request2 from '../utils/request2.js';
//主页轮播图
export function getWXCarouselChartAction(data){
	return request({
		url:'/WXCarouselChartAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}

// 紧挨着轮播图的导航
export function getWX2ColumnAction(data){
	return request({
		url:'/WX2ColumnAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}

// 栏目查询
export function getWXColumnMainAction(data){
	return request({
		url:'/WXColumnMainAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}

// 商品查询
export function getWX2GoodsIdAction(data){
	return request({
		url:'/WX2GoodsIdAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
export function getWX3GoodsIdAction(data){
	return request({
		url:'/WX3GoodsIdAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
// 商品详情
export function getWX2GoodsDetailIdAction(data){
	return request({
		url:'/WX2GoodsDetailIdAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}

export function getWX3GoodsDetailIdAction(data){
	return request({
		url:'/WX3GoodsDetailIdAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}

// 公有页的查询
export function getColumnConfig(data){
	return request({
		url:'/getColumnConfig?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
